/*
 * $Id: misc.h 36 2008-07-10 18:55:19Z dtikhonov $
 *
 * Miscellaneous functions.
 */

#ifndef _DHEXVIEW_MISC_H_ /* [ */
#define _DHEXVIEW_MISC_H_ 1

#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

#include <lua.h>

/*
 * Print LUA error and exit (stolen from PIL, 1st ed, chapter 24).
 */
void
error (lua_State *L, const char *fmt, ...);

void
prepare_lua_method (lua_State *L, const char *package, const char *method);

void
canon_filename (char *filename);

#endif /* ] _DHEXVIEW_MISC_H_ */
